Added first and last function declarations

getHead, getTail