Global nucleic alignment using the ABC algorithm