DP area under histogram