added methods to vector and hash that are needed by Snapworld