Rook Polynomials For Chessboards Of Two And Three Dimensions