Added ugly 'reverse' implementation example Java-style using a while loop.