Ruby implementation of segment tree data structure for storing intervals. It allows querying which of the stored segments contain a given point.