added voroni area computation for triangles
reduced redundant code by introducing a function