BacktrackingSolver: Added support for optional dependencies

Closes #69