Changed double to float, intervals[] ring buffer head pointer now points on actual element, not next one
Changed teo 2D-matrix to single dimension ring buffer. Also did some formating work, eclipse now properly set up to not wrap lines at 80th column.
teo ring buffer working. Implemented median calculation, not working properly yet.