ASOT 521 Fast Distance and Dimension