Fix segfault in dp_basic version
Code polish

- removed unnecessary global variable
- unsigned variables are passed by value
- printing of solution commented (not implemeted)
- code doesn't exceed 80 columns