Advanced algorithms for surgical gesture classification