Massachusetts came up with nitrogen reduction technologies and other innovative ways to help reduce algal blooms and keep Cape Cod residents safe.