Next-Day Stock Trend Prediction Using the Self-organizing Associative Memory ( SAM ) System