My own implementation of LinkedList data structure in Java