An algorithm for the recovery of Fetal Heart Rate Series from CTG Data