changed node data to be void pointer instead of int to allow other data types