The Formation Of Microstructure In Shape-Memory Alloys