NEW: added 'test' for calculating resource distribution simulation, implemented 1st algorithm