Update main.cpp

Added is calculating genesis block