Lattice computation of structure functions