beatComplexity function

Beat spectrum complexity