Issue #47: now sets algorithm rect to landscape or portrait, depending upon device orientation

The Rect methods 'minDim' and 'maxDim' can be used to define the sizes of input data, since these quantity will be the same for both orientations