calculate_complexities function

Calculate Distribution of Complexities by Sample