Add convenience front() and back() functions

I find them useful.