Mesoscopic model of microstructure evolution in shape memory alloys, its numerical analysis and computer implementation