Added basic implementation of cursors and associated tests. TODO: size checks.