import yakov amazing overlap underlines algorithm