Fast model for search algorithm