The $GridGEM module$ for the ILD TPC and A new algorithm for kinematic edge determination