Add binarysearch for settimeout method insertion