test subspace dimensions based on dimension of dataset