sort algorithms architecture re-design, tests on QueueArrayImpl