Attempt to add cost accounting -- so far only search costs
debugging simulate, trying to save intermediate data, fixed init -> simulate call for new syntax