Japan will use a supercomputer to warn ships of choppy seas that can spark large and dangerous "rogue waves."