removed dependency on Apache Commons Lang library
fixed bug in intRange
fixed various bugs in Partitions, and completed the implementation of THIMStats