Reduce worst time complexity of mem parallelisation from O(2**n) to O(n**2).