Computes fibonacci, fixes infinite loop when passing a new environment in the wrong order (newer were looked upon first)