Initial implementation of global_alignment