aacp function

Utils: Area under the curve