use Procrustes to solve for A