Fix the index.
Finally manage to get the simulator running, although there're still bugs...
The simulator can now correctly simulate the Binary to Gray convertor!
Merge branch 'slicing-and-indexing'