Intrinsic dimensional design and analysis of similarity search