Smooth graph
Use std::max
Fast version of Barnard BB