Testing for LDA and kmeans code

Added functions to the kmeans and LDA code that will allow the testing on a range of topic/cluster numbers.  LDA wil create an output log file from which the perplexity can be extracted.  The kmeans code uses a gap statistic and will produce a graph when finished by default.