Checkpoint: Fixed bugs from Cycle 3 rush/optimizations with heart_rate_official_cport.m where:
1. max_index in finding R-peaks was being set to i instead of the actual index 'j'
2. where the signal was being normalized by max(data) instead of max(abs(data))