The Scotsman and Yorkshire Post owner National World has agreed a £65.1 million takeover by its largest shareholder, Media Concierge.