get memory size
make get_size_of_kernel function