Added function for ellipse fitting

This function doesn't actually contain its guts at this point. Just
setting up the frame work for porting some code developed elsewhere.