- avoid regex by using pattern matching
- avoid looping through the acc on loop_receive by passing a count arg
- remove the list acc for loop_receive by calculating lcm each time a
message is received
- convert from search to direct lookup for next instruction