PULP-HD: Accelerating brain-inspired high-dimensional computing on a parallel ultra-low power platform