Refactored: Replaced ArrayLists and HashMaps

replaced them for Vectors and Hashtables to cope with multithreading.