Set the instruction number during the constructor

This uses a static variable to set the instruction number, just makes it
easier.
Assign all basic blocks a number

This is done the same way I am doing it for instructions.