Planning With Adaptive Dimensionality