create a new node
createnode(keyvalue,&p);