LinePartition.reduce(). Implemented