add Partitioner and HashPartitioner (#29)