Mississippi man gets life for killing optometrist in Walmart