new and improved backtracker
use general backtracker to solve cake problem