Update topstack.cpp

Neil Logan, TopStack test.

For the highest number I used a loop to check each item in the stack, storing a value if the value was higher than the currently stored value.