adding the blocks to virtual machine and store instructions in array not list