Removing useless methods.
Moved the integral sum calculation out of the classification to speed things up. Also changed a bit some calculations so that I might enjoy a better performance by avoiding branch prediction. See http://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-an-unsorted-array.