The heir to a pie company fortune who murdered his best friend has been sentenced