Implementation of Rook and Bishop moves generators