added fast_expo.cpp

added the solution to fast exponentiation in c++.