Some matrix funhctions was added and changed