Sunspot detection and tracking algorithms using MDI data