Upgraded frequency sort
Created makefile