Figure node2

Rebase figure_node #12

Hash version is completed. Please review it.
Sample usage is in sample/README.md