Vector bundles on curves over Fq and algebraic codes