Added bisect-mode option to maxtopandbottom averaging script.