removed all static variables
remove all member variables from recursive fn signature
fix compiler warnings
reenable -Wall
move findsolution to a nonrecursive function with manual backtracking