working version with fast binary search (database free)
working version with fast binary search (database free)