demo of VM rearrangement algorithm