added triangle side length to prep
added upperbounds lowerbounds to prep