OPTIMAL DESIGN OF A BAR WITH AN ATTACHED MASS FOR MAXIMIZING THE HEAT TRANSFER