val ackMap = new mutable.HashMap[(BigInt,BigInt),BigInt] def ackMemo(m: BigInt, n: BigInt): BigInt = { ackMap.getOrElseUpdate((m,n), ack(m,n)) }