added front and back accessors to linked-lists

Added functions for accessing and removing the front and back elements in a
linked-list.