g.getbout function

function to calculate bouts from vector of binary classes