Added removeFirstEntry and removeLastEntry including tests