Almost Done

Fixed the issue so it now runs correctly. We just have to fix
partitionable(), minWeightComponent() and write the last function. I
will fix minWeightComponent().