Implement prdb database

The implementation includes:
* Using new ssa_db structure
* A new handler for found path. The handler inserts a new path to prdb
* pr_pair tester saves a new key -O that allow to create prdb

Also the commit fix some issues with memory and minor linkage problems.