practice for the sort algrithm