A Pathology Foundation Model For Cancer Diagnosis And Prognosis Prediction