Restructuring of the qip module

qft goes to algorithms folder