Merge pull request #1 from pdjely/master

Fixed algo3--should get correct outputs now
added tex file and plots
Fixed several off-by-one bugs that gave wrong answer

Details:
  - Made algo1 iterate to end of array
  - Algo3 wasn't returning the right answer when the maxLeft included
the midpoint
  - Adjusted array end points in algo3

We should always get the right answer now