modified an algorithm, updated commentary on array sorting