Deal reached for Martin County teacher raises