memory weka instances creator