Adding the isSorted exercise