An algorithm for the automatic detection of abnormal mitotic figure towards the automated diagnosis of melanoma