Compute style

Hello,

I want to write my own compute style that calculate the list of a nearest neighbors with a certain cutoff radius. Where is the best place to start. Are the any tutorials for that.

Thanks