Local Affine Alignment with test and some changes