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