A program to work out an inverse of a square matrix