Automatic Grid Updates for Kolmogorov-Arnold Networks using Layer Histograms