i) get_ram_size implementation completed

TODO:
i) debug get_ram_size