.getOrElseUpdate((i,j), {
  // rest of the method here.
})