Sorry, I missed your array question earlier. I think you just need to maybe initialize your buffer when you declare it, then assign to it via buffer = {...},
Also Peter Norvig (important AI coder at Google amongst other things), has posted an excellent sudoku article here:
http://norvig.com/sudoku.html