cmpplot now returns axes handles
Added function thresholdindex

Finds the first and last time point in a matrix where the value exceeds
a certain threshold.