Testing For The Equality Of Two Distributions On High Dimensional Object Spaces And Nonparametric Inference For Location Parameters