Create boolean array of size high - low + 1 , each index i representing wether ( i + low ) th element found or not .
let polets_of_range = Array ( high - low + 1 ) . fill ( 0 ) ; for ( let i = 0 ; i < arr . length ; i ++ ) {