Bug fix

In the `partition` method, I was using the original `list` parameter rather
than the cloned duplicate.