Initialize an auxiliary matrix and fill it with 0 s
let dp = new Array ( k ) ; for ( let i = 0 ; i < k ; i ++ ) { dp [ i ] = new Array ( 2 ) ; for ( let j = 0 ; j < 2 ; j ++ ) { dp [ i ] [ j ] = 0 ; } }