Restructuring the qip module

qft goes to algorithms folder