fixed bug in linkedlap, started writing test cases
added test case for updating head and tail (currently failing)