Milestone: functional, memory sort added