Add memory usage class and clear function, gotoXY