A simple sort implementation - for lecture slides & task assignment