A computer readable storage medium includes executable instructions to order a binary tree using primary values and selected secondary values required to resolve a position in the binary tree. A color camera is used initially to collect a set of reference images of at least one reference object. The advantage of these features facilitates the acquisition of high resolution images of samples in general, and particularly in liquids.