Implementation of CBIR in matlab