added Yury Petrovs ellipse fitting