P-wave detection by digital computer