linkedlists: added better implementation of linked lists supporting multiple types and more operations