switched to concurrent hashmap to avoid race conditions when learning vocab frequencies