Function checks if square with all 0 's in boundary exists in the matrix
function squareOfZeroes ( matrix ) { var lastIdx = matrix . length - 1 ; var cache = new Map ( ) ; return hasSquareOfZeroes ( matrix , 0 , 0 , lastIdx , lastIdx , cache ) ; }