adding SMHA.cpp file