Add new utility function, partitionWith