Remove QtAlgorithms usage from IFW.

QtAlgorithms is getting deprecated, see
http://www.mail-archive.com/development@qt-project.org/msg01603.html

Change-Id: I49360de6071a00986a6220531d09bb5cb0149788
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>