Ellipses code for least squares and RANSAC ellipse fitting - all credit goes to the McGinley Laboratory (Baylor College of Medicine)