crush: pass weight vector size to map function