First attempt at implementing n-queens algorithm in scala.