Algorithms for the inference of causality in dynamic processes: application to cardiovascular and cerebrovascular variability