Time efficient and quality effective K nearest neighbor search in high dimension space