C# Matrix manipulation and Wireframe Repo