MATH CARD TRICK- BINARY SEARCH ALGORITHM