Adding the node to the nth location