Improved Question 3 (UCS)

Improved the function by removing the seen list and using the fringe to
check for seen or unseen nodes. Also, the actions array is created 'on
the move' instead of at the very end, because of usage of the
problem.getCostOfActions() method.