Scientists create a tool to ‘edit’ brain functions and improve memory