Implementation and optimization of the PTOLEMY transverse drift electromagnetic filter. (1st May 2022)