nonparametric tools+classes in scala and java