Adding stub code for GridRegularizer
Filling out code for GridRegularizer

Includes implementation of SumProduct algorithm
Probably doesn't work