Implementation of a hierarchical adaptive critic design