A rectangular bird sancuary is being created with one side along a straight riverbank. The remaining three sides are to be enclosed with a protective fence. If there are 16 km of fence available, find the dimension of the rectangle to maximize the area of the sanctuary.