Measure complexity analysys code, based on Kamira project

Whenever a measure is saved, the complexity is calculated for each population of the measure