如图,已知:CD⊥AB于D,BE⊥AC于E,且BD=CE,BE交CD于点O.求证:AO平分∠BAC.