Essays in market design and heart transplantation