1. fixed crash bug caused by bad memory access   2. added hash map for O(1) GET, SET and PEEK, which should speed up execution time a bit    3. deferred all stdout to the end of main() instead of within command loop to speed up execution time