Fixed the affine_transformation_matrix

Fixed the affine_transformation_matrix. Now it won't show any abnormally
small values.
Next step:- Check how many layers are there. Store these number of
layers in a file. and read from this file to check number of layers
currently being implemented in MSC.
After learning the affine transformations, next step would be to check
current number of layers present, followed by whether any new layer
needs to be added or not. If yes then update the number of layers stored
in the file. Otherwise, just send append this new transformation to
existing layer's file.