Fixed index algorithms

* Removed functions top() and topPrev(). They were defined only for Block Strings and not part of the documented interface.
* Added generic function backPrev().
* Fixed Esa algorithms broken after changing the VSTree stack type to Alloc String.