Checking cfep sorting algorithm