Implemented simple operations on compact memory element.