Transformation behavior and the shape memory in thermally cycled TiNi