Started implementing djikstra