In triangle ABC, AC=BC and ∠ACB=90∘. Points P and Q are on ¯AB such that P is between A and Q and ∠QCP=45∘. If cos ACP = 2/3, then find cos BCQ.