Serial and Parallel implementation of a Grobner Basis solver