Added the cpp version of frontier-stpath