Initial code for single source shortest path algo implementation.