New massively parallel algorithm for BMU.
slight change to cache a calculation