[algorithms][disjoint] remove partition related code