create optimize-binning script