Text this: Real time algorithm for the portable recording of fetal and maternal heart rates