[data structure] stack: add conversion and "()[]" match algorithm