Updated files with working functions

Working functions to support inverse matrices