Add NewFloat64 function

This creates a legal matrix or returns an error.