implemented Minkowski distance and his test