Implementation of a library for DRAMPower