Add Basic malloc functionalities

Signed-off-by: Santosh A <asantosh.king@gmail.com>