Added a method for partitioning

Added the method set_partition_strategy for updating the
PartitionStrategy object. Solved three bugs of various nature.