Added algorithm

Added the calculations for the spam/ham percentages