add Java-friendly methods
move classes to mllib.feature