Revert "rima.lua: use hash index for tasks spase instead of tree"

This reverts commit e969e6bf941651a36339efb6e31a66c4eb00c550.