basic search implemented. .. the dimension and the weight has to be included