segfaulting while calculating normals - first block works