Fixed the bug in heartRate function

https://github.com/mostaphaRoudsari/ladybug/pull/115