Fix compiler warnings on Linux.
Replace mod exponentation with std library impl.
Solve problem 123 using Go.