Jianfeng/genomix refactor hyracks graph building

This branch has been reviewed by Jake. I will directly pass this pull request.