A ssimple implementation of a Best First Algorithm