fixed problem with minkowski distance, abs() got removed somehow