Given a rectangular area, how do I find the smallest possible perimeter?