Linear versus Binary search for In-memory and disk-based files