Grokking Beyond Neural Networks: An Empirical Exploration with Model Complexity