A numerical procedure for rational L2 approximation