Write own zcash miner

Hello everyone.

I’m a software engineer and i decided to make my own zcash miner which gonna be the best.
But i’m new in algorithm of mining system and dont know how miners are working. I need guides/libraries/apis/may be examples of source code - everything what could help me to build a simplified basis of my feature masterpiece.
I’m appreciate any help.

Best wishes,
Santa

It might make sense to get a handle on Bitcoin Mining first (though the equihash algorithm is different).
Check out:

Hello! See this Excel file. It is small better then pencil and paper.)https://www.youtube.com/watch?v=UZBZPOEVyJA