Hey Aravind,
I noticed yours is an interesting work. I saw a couple of comments similar to mine. Do you have ideas to improve the code for constraint functions? Or could you state how one could implement it? That would answer many of the curious users who have commented on your interesting program. Thanks.