The _used_ size was correct, but the addressing requires n*n.
Multiplex handler (all->all) with single pin for interrupt handling. For wired boards/shields, the interrupt can be ignored to simplify the electronics greatly.