Move some general wt_int methods to wt_algorithm 

 - Moved quantile_freq to wt_algorithm
 - Addressed issue #145