Extend some classes in Apache Mahout