Update wota.c

New faster solution from wota
rename function
add new solution from wota
fix build
fix warning
Merge pull request #7 from lesteriv/master

new solution from wota