Use pointers to node structs instead of copying values around.