Added abstract class for ShortestPathAlgorithms