Real Time Digital Filter for a Front-End Electronics in Dark Matter and Neutrino Measurements