A Probabilistic Approach to Surgical Tasks and Skill Metrics