Used tree-based algorithm to build options. Correct, but slow and runs out of RAM.