Reconfigurable heterogeneous integration using stackable chips with embedded artificial intelligence