added aps_extraction_ellipse.cpp to repo
fixed bug in aps_extractor.cpp