Add removeoutliers for java and basicavg for scala and java