Compile with optimizations.
find_predecessor() now works. Implemented stupid algorithm also to confirm results.