Tracking algorithm for cell motion and morphology (MATLAB)