Completed Working Inverse Matrix Code