BuildNIHR function

Builds the instantaneous heart rate signal from a beat position array