Optimlaisations + new features

- Matrix
- Laplacian Matrix for Graphs