Implement the algorithm in this site for practice. https://yutaka-watanobe.github.io/star-aida/books/