Serial CT  algorithm

implemented the serial version of the fast transformation. gets a
segfault!