Trying to map a 2d array into a disk

you forgot to modulo B by the boundary which is crucial in case B overflows the border

2 Likes