Wrote range partitioner
Parametrized RangePartition type and changed HashPartition to Int
instead  of int64