Added constructor to LinkedList implementation