Libfcg

- Started to implement basic optimization