Implement Cursor's next method