The upper triangular solutions to the three-state constant quantum Yang-Baxter equation