first version of isSorted using pattern matching
better version of isSorted
adding curry
adding uncurry
adding compose