BUGFIX: Null pointers were not managed
Function to check if a double is a valid number added
Function to get a priority of a road at a junction
All derivative terms added
Feature: forwardSimulate now returns a new state

forwardSimulate was modifying always the same state modifying it
by side effects.

Next: Find the reason that raises an exception in the solver