Changed the masks to hopefully reflect the correct bit amounts. Those being 5 bits for L1 offset, 8 bits for index, and 51 bits for tag. The masks for L2 are 6 for byte offset, 9 for index, and 49 for tag.
Added some more cache parameters and both changed and tested the masking. The results are correct according to Plesh daddy's results.