Add interval-search function. Close #4.