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 selection of a plurality of objects associated with a dataset, a key object and a specified number of nearest objects corresponding to the selected key object; sort the plurality of objects in a structured format, wherein the sorted plurality of objects is adjacent to the key object; define one or more windows including a subset of the sorted plurality of objects, wherein a cardinality of the subset corresponds to the specified number of nearest objects; and determine distances between the key object and the sorted plurality of objects based on the defined one or more windows to identify one or more nearest objects for data analysis, wherein identifying the one or more nearest objects to the key object, comprises: determining a first distance between the key object and a first object adjacent to the key object, and a second distance between the key object and a second object adjacent to the key object; based on the determined first distance and the determined second distance, identifying one of the first object and the second object adjacent to the key object as a first nearest object; determining a distance between the key object and a third object adjacent to the first nearest object; and based on the determined distance between the key object and the third object, identify one of the third object and remaining of the first object and the second object adjacent to the key object as a second nearest object.