The code

Updated: October 26, 2022

Before we dive into the code, let's look at the major data structures.