How Massachusetts law protects software patents