move alignment.py
implemented with c++