Started implementing marching triangles.

Should probably start a new branch for this soon.