Add ISortInPlace interface to simplify sort algorithms and tests.