reworked elev_cost_func, fixed bug in elev_status

cost_func now takes in Order structs as parameters.
elev_status now compiles.