Fix for unsorted nodes

- Also set length of temp_degrees array to the max node degree of the
graph.
Added RCM test

Test to verify node reordering works properly.