Using Hashmap vs int[]