Store number of nodes in targetmap lookup
Change calloc to malloc
Change 1000x1000 ticks to 10