Complete implementation of DynAlign + basic test.