Matrix Code 2.0 (Update)

Redoing Algorithm