Shortest path (true)

Added shortest path (true) functions.
Parser is added because the functions are tested there.