Add a new variant of detectMultiScale with output arguments 'objects' and 'numDetections';
factor most of detectMultiScale's code into 2 private methods