creates augmented matrix