Create peak.cpp

Created peak finding O(log n) algorithm.