Reciprocating heat pipes and their applications