Implementing Mesh refinement

Still some work needed, refining a node corrupts the tree
Fixed index issues in NzPatch

+fixed shader accordingly
+fixing refine