Improved speed of entropy scan by using a list rather than a dictionary for seen values vastly improved speed with optional numpy/numba implementation