Calculating the Normal Matrix