Mathematicians are close to figuring out how to make the perfect cup of black coffee