This function allows the correct initialization of all data structures that will be used by the algorithm
obj.init()