adding the file the recursive computation of the momentum