2 life terms for man who killed ex-girlfriend, grandfather