a tweaks so that datatypes compile with JDK 1.6
* properly genericizing interval trees to get rid of implicit casts
* trying to get rid of warning throughout the code