The proof of $A_2$ conjecture in a geometrically doubling metric space