my solutions for leetcode; codes for other algorithms