try fix segfault
fix print result function and uncomment sort call
Merge pull request #2 from DobzhanskyCenter/dev_long

fix segfault