implemented methods for functional array based list, passes current tests
implemented methods for functional linked list, passes current tests