Removed string and split from the dataValue variables, changed filterPeaks method to itterate through the arrays backwards and on return the two most recent peaks.