Trim, Front, and Back

New trim function added for fun along with C++11's front and back
getters.