Fewer teeth linked to poor memory