A * massive refactoring
additionla parameters for ProcessNode