Solved scala library hell + backtracking search for csps