Man accused of naked subway attacks pleads not guilty