add stack template
add queue template
copy stack
Local References impl