v0.0.1: Improve memory usage for large samples and generalize calculation of memory based on number of variant inputs merged