Skeletal, half ported A* routines