A new algorithm and worst case complexity for Feynman-Kac path integration