Fix issue reported by address sanitizer
The sanitizer reports that a call to getBrickIdxBsMap() tries to access an out-of-bounds element. The size of the array brickIdxBsMap[] is thus increased by 1 and its last element is initialized to some large value