Added Stack and improved list api

Signed-off-by: Faiz Kothari <faiz.off93@gmail.com>