This project uses the binary search algorithm to guess the number you're thinking of at 'unbelievable' speeds from 'incredibly' high numbers.
This is why :) Every time you're going to search for something linear, try binary.