Fixed the gap statistic code by adding code to delte the intermediate files.