Autonomous Localization of a UAV in a 3D CAD Model