Libfcg

- Started to implement basic optimizations