added some tests
added getFirst/getLast and addFirst methods
"add" method renamed in "addLast"