Intelligent memories in VLSI