implement function randomly_get_bipartition in initial_partitioning.py