Removed index from node struct

replaced the index in each node with just a single int (position) in the
linkedlist.h class to keep the position of current known. seems like a
much better implementation than what it was previously.