Implement prev() method for Cursor
Remove unused imports in main.rs to reduce warnings