base for gift wrapping algorithm