Fix compilation errors in examples related to num traits
Merge pull request #436 from nicholasbishop/bishop_fix_example_compilation

Fix compilation errors in examples related to num traits