Understanding aliasing using Grobner bases