Added clustering reordering. fixes #410.
Merge pull request #414 from jfarid27/fix-issue-410

Added clustering reordering. fixes #410.