fix bug [[0]*lc_s_num]*lc_s_num in initial_partitioning