Efficient Motion Planning for Problems Lacking Optimal Substructure