Move examples folder to root
Minor edits
Fix memory leaks in population_sort()