binary search for sorted javascript arrays||array like obejcts. provides method to create sorted index of objects.