Algorithmic Foundation of Multi-Scale Spatial Representation by Zhilin Li