vectorized implementation of getSF, big speed-up in motif plots