A Reachability Tree-based Algorithm
for Robot Task and Motion Planning