CS531: Homework Assignment 2 - N Queens problem