Man gets 300 years in prison for killing wife, 2 others