On the mechanism of the shape memory effect in Ni-Ti alloy