Added buffer API functions for moving the cursor

forward and backward. Added line/column tracking and refactored tests