single-threaded backtracking coded and optimized. It runs very fast.