Added calculation of sigma and action selection

Added calculation of sigma, although it isn't used yet as it gives bad
results cause the distance between non-adjacent faces is not considered.
Also added an EnumProperty for the action to perform with the
segmentation. Some fixes to identation, more pythonic for-loops and so
on.