Added Dijkstraalgorithm and Interface for Functions.