Simple stock market analyzer which uses the maximum sub-array property to determine the period of highest positive and negative change