added matrix operations for getting inversion of translation and reotation