basic implementation of packery