A Constrained Box Algorithm for Imbalanced Data in Remote Sensing Images