code to find genesis block