Java implementation of the matrix exponential method by Al-Mohy and Higham (2011)