1. A method of optimization for a search, the method comprising: receiving, by a computer, a first decision tree comprising a plurality of nodes, each node for comparing a feature value to a threshold value, the nodes comprising a root node, a plurality of internal nodes, and at least one leaf node; determining, by the computer, the frequency of a first feature within the first decision tree; determining, by the computer, the frequency of a second feature within the first decision tree; ordering, by the computer, the features based on the determined frequencies; storing, by the computer, the ordering such that values of features having higher frequencies that are retrieved more often and occur closer to the root node of the first decision tree are grouped into memory blocks that are closely packed and furthest from memory blocks that store values of features having lower frequencies and occur further away from the root node within the first decision tree, the feature values are associated with features of a web page; traversing the first decision tree in a direction based on the comparison of the feature value to the threshold value associated with the root node and the internal nodes; and determining a score for the web page upon reaching a leaf node during the traversing of the first decision tree.