* Working on fixing the first element in matrix transformed to Smiths form