Bidirectional Associative Memory for Function Approximation