Judge gives Castlewood man two life terms for child sex crimes