getUpperBounds function

Get upperbounds of edits, given the boundaries of all variables