Updated Partition to ensure error message is shown when weight <= 0 is
provided
Renamed argument in Partition constructor from 'weights' to 'values' as
the original named seemed inappropriate
Changed argument in Partition.fromWeights to be an IndexedSeq