* instantiated sample packing algorithm