add Search Magic Index (with duplicated elements) solution in Cracking the Code Interview Chapter 9 and problem 3 part 2