eleminated linkedlist queue from ShortestPaths - small performance boost

Change-Id: I864172105f7bf7f4406f96836c7d741ed55ccb66
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>