I've created a new nodes and a sparse array in my main function--generics don't seem to work here?