added isPermutation java file