Effective shape-based retrieval and classification of mammograms