Possibly working indir2_index, indir_index, and direct_index

Indexing functions possibly working. Added lots of print debug
statements (comment/uncomment as you see fit).

Should focus on add_block and remove_block.

Passes 8 of 17 test cases, but drops to 4 of 17 on subsequent runs.