Working Algorithm and Matrix Changes

None working simulation