Photometric parallaxes for selected stars of color class m from the NLTT catalog