Cache rows only once for each index
Cache rows only once for each index

It made no sense to cache the rows again for each index j. Fixing that
makes each algorithm 2-3 seconds faster.

timvandermeij/lbp.py