Local maxima finder (Local/Global Peak Detection) Local maxima finder example written in C, inspired from MATLAB's peaks() function