Futoshiki solver first implementation