fixed a potential segfault, added an option to set the load_factor and disable the autoresizing