A computational perspective of the role of Thalamus in cognition