Add implementation of stack data structure.