Different approaches to solving the maximum subarray problem in C with graphed results through PHP and JavaScript