Fixed the bin identification so the short side should be between corner1 and corner3 instead of corner1 and corner2