Added Java version of linked list