A Contour-based Shape Descriptor For Biomedical Image Classification and Retrieval