InputRange Vertical orientation

This pull request relates to gh-982 to add support for "vertical" orientation in InputRange.