Source: https://www.math.tamu.edu/~gpetrova/BIT.pdf