Add rest, initial, last and uniq
Add tests and makefile