Added .gitignore
Simplify definition of findPeak

as per suggestion of Mark Wotton
mwotton@gmail.com
on Reddit