Added fibonacci calculation for last k elements as opposed to last 2 elements