Added specific 2D and 3D versions of fast_linbin