trustees and authorize him or them to sell and convey such land or any part thereof in fee simple, if such sale and conveyance appears to the court to be necessary or expedient, or to mortgage the same for such an amount, on such terms and for such purposes as may seem to the court judicious or expedient; and such conveyance or mortgage shall be valid and binding upon all parties.