added non in-place merge
Corrected new id logic
change in random number max logic
cleanup of if else block
sequential numbering of nodes using max id
Change None to 0
always return new id and put new id logic in a function
Docstring changes
Merge pull request #1188 from vighneshbirodkar/rag_merge

Added in_place option to merge_nodes