changed array sort , to bunnle sort. display nearest & previous, update config