Reduced loops, removed display output in function
Added code for displaying pascal triangle from array