Sloan Digital Sky Survey Astrometric Pipeline