The code

Updated: April 19, 2023

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