created some sorting algorithms to figure out most used keywords