Add possibility to generate decision tree during preprocessing.

Fixes #21.