Fix bugs in information loss. Now partition is complete

Todo:
balance fuction: Yeye He's pseudo-code don't show details.
And details metioned in his paper are not so clear.