Change Modularity and BoardEntry to bytes, instead of native ints. Shows a modest 2-3% speed increase on my machine, likely due to increased cache consistency.