Vectorizing parts of wls / glm
Got initial stab at vectorizing GLM working