added stack.py, built on dcarray.py