solving algorithm base
check col & row done..