Generalized bananalyze.cpp to any number of jets and btags.