```rows = upperBound + 1``` and the ```rows``` is used as an index into ```input```. Does it not crash the ```input[i]```?