Added modularization in classes for sim and algorithm. Added balance test