lecture 27
add explaination for array sorting