writing algorithm for filling overflowbin vector-not working yet