Added stack and related operations; fixed list