Summary: Added some utils from another toy ML library that I have been playing with.