Add pre-end bin pack algorithm