This is my attempt to solve the Leetcode problem #43. As the algorithm
requires some matrix manipulation, and AEC (a programming language I made
which compiles to WebAssembly) is not yet good at it, I will solve it in
JavaScript. JavaScript isn't excellent at matrix manipulation either (C++ is
better, but I cannot easily make C++ run in a browser), but it's still
better than AEC at that.