looks like you always pass in an Int, we might be able to save space by using an Int, Int map.