Added a GLM-like implementation. To be tidied later. Just trying the technique.