Use linear search instead of direct indexing. Obviously not the best approach, but it's ok until we got some sort of hash_map