Computing distribution of scale independent motifs in biological sequences