A Scalable FPGA-Based Network Processor for Scientific Computing