The basic matrix library (BML) for quantum chemistry