Got the merging semi-working; Dijsktra's next