Fix last()
Change definition order
Add $isSorted argument to uniq()