Vecotrized Neural Network Feedformard Cost Function