Algorithmic approach to real world problems - rook polynomials