Man convicted for sword attack that killed 2, injuring 1