-done- Algorithms added better matrix