1. An article of manufacture including a non-transitory computer readable storage medium to store instructions, which when executed by a computer, cause the computer to: receive a plurality of objects associated with a dataset and a specified number of nearest objects, corresponding to a key object, to be identified; sort the plurality of objects in a structured format; select a number of adjacent objects corresponding to the key object from the sorted plurality of objects, wherein the number of adjacent objects is selected based on the specified number of nearest objects to be identified; and determine distances between the key object and at least some of the selected number of adjacent objects to identify the specified number of nearest objects for data analysis until the specified number of nearest objects are identified.