Optimal Narain CFTs from Codes